{extend name="index/base" /}
{block name="content"}
<article>
    <div class="_head">
        <h1>{$data.title}</h1>
        <span>
        作者：{$data.author}
        </span>
        •
        <!--pubdate表⽰示发布⽇日期-->
        <time pubdate="pubdate" datetime="{:date('Y年m月d日 H:i:s',$data['time'])}">{:date('Y年m月d日 H:i:s',$data['time'])}
        </time>
    </div>
    <div class="_digest">
        <p>
            {$data.content}
        </p>
    </div>
    <div class="_footer">
        <i class="glyphicon glyphicon-tags"></i>
        {volist name="data.tags" id="tag"}
        <a href="{:url('taglist',['tid'=>$tag['tid']])}">{$tag.tname}</a>
        {/volist}
    </div>
    <ul class="pager">
        <li class="previous">
            {if condition="$moreData['prev'] == ''"}
            {else /}
            <a href="{:url('content',['id'=>$moreData['prev']['aid']])}">上一篇 ：{$moreData['prev']['title']}</a>
            {/if}
        </li>
        <li class="next">
            {if condition="$moreData['next'] == ''"}
            {else /}
            <a href="{:url('content',['id'=>$moreData['next']['aid']])}">下一篇：{$moreData.next.title}</a>
            {/if}
        </li>
    </ul>
</article>
{/block}
